package com.leyou.item.web;

import com.leyou.common.enums.ExceptionEnum;
import com.leyou.common.exception.LyException;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: leyou
 * @description: 商品
 * @author: NieMiao
 * @create: 2018-11-02 15:49
 **/
@RestController
@RequestMapping("item")
public class ProductController {

    @GetMapping
    public void list(){
        throw new LyException(ExceptionEnum.PRICE_CANNOT_BE_NULL);
    }
}
